package com.tz.farmer.model;

import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class BusinessInfo implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商户法人姓名")
    private String businessPersonName;

    @ApiModelProperty(value = "商户名称")
    private String businessName;

    @ApiModelProperty(value = "社会统一代码")
    private String uniscId;

    @ApiModelProperty(value = "商户地址")
    private String businessAddress;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "扫码次数")
    private Integer scanNum;

    @ApiModelProperty(value = "当日访问次数")
    private Integer visitCount;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮编")
    private Integer zipCode;

    @ApiModelProperty(value = "规模")
    private String scale;

    @ApiModelProperty(value = "主导产品")
    private String leadingProduct;

    @ApiModelProperty(value = "农 渔属性码331001 渔,331002 农")
    private String property;

    @ApiModelProperty(value = "软删除 1 删除 0 未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "地区")
    private String city;

    /**
     * 原帖由主体列表需要
     */
    @TableField(exist = false)
    private int authNum;  //产品信息数
    @TableField(exist = false)
    private int prodNum;  //认证信息数

}